<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <meta content="phalconplus API doc" name="description">
    <title>
                    phalconplus API Documentation
            </title>
    <link rel="stylesheet" type="text/css" href="../../../asset/static/prettify.css" />

<script src="../../../asset/static/prettify.js"></script>
<script src="../../../asset/api_definition.js"></script>


                        <link rel="stylesheet" type="text/css" href="../../../asset/static/prettify.css" />
                    <link rel="stylesheet" type="text/css" href="../../../asset/static/zephir-theme.css" />
            
    

                        <script src="../../../asset/static/prettify.js"></script>
                                    <script src="../../../asset/api_definition.js"></script>
                    <script src="../../../asset/static/jquery.min.js"></script>
                    <script src="../../../asset/static/zephir-doc.js"></script>
                <script type="application/javascript">let ZepCurrentPath = '../../../'</script>
    </head>
 <body onload="prettyPrint()">
        <div id="top-bar">
            <div id="top-left">
                                    phalconplus Documentation <span class="version">v1.1.0</span>
                            </div>
            <div id="top-right">
            </div>
        </div>
        <div id="body">
            <div id="body-left">
                <div class="header-search">
                    <input class="search-box" placeholder="Search for a class or namespace " type="text" />
                    <div id="menu-wrapper">
                    </div>
                </div>
            </div>
            <div id="body-right">
                <div class="content">
                    
<div class="breadcrumb">
    
    <ul>
        
        <li><a href="../../../index.html">Home</a></li>
        
                <li><a href="../../../classes.html">Classes</a></li>
                <li><a >PhalconPlus\Curl\Request</a></li>
                
    </ul>
    
</div>
<div class="class-header clearfix">

    <div class="access-buttons">
        <a class="zep-button" href="../../../source/PhalconPlus/Curl/Request.html">Source</a>
            </div>
    
    <div class="class-full-name">
        <span class="class-type">Class</span>
        
                <span class="namespace-piece">
            <a href="../../../namespace/PhalconPlus.html">
                PhalconPlus            </a>
        </span>
                <span class="namespace-piece">
            <a href="../../../namespace/PhalconPlus/Curl.html">
                Curl            </a>
        </span>
        
        <h1 class="class-name">Request</h1>
    </div>
</div>


<div class="hidden-anchor"  id="methods"></div>
<div class="methods-summary standard-bandeau">Methods</div>

<ul class="method-summary-list">
            
<li class="class-method clearfix">
    <div class="method-summary">
        <div class="method-signature">
            <!-- method-summary -->
            <!-- Do not remove comments below. It's a trick to remove the spaces. -->
            <span class="method-name">
                <a href="#method-details-__construct">__construct</a><!--
            --></span><!--
            -->(<span class="param-data-type">variable</span> <span class="variable param-name">$curl</span>)<!--
            --><span class="method-return">
                <strong>:</strong>
                                    void
                            </span>
        </div>
                    <div class="method-doc">
                <div class="summary-text">
                    Constructor                </div>
            </div>
            </div>
</li>
            
<li class="class-method clearfix">
    <div class="method-summary">
        <div class="method-signature">
            <!-- method-summary -->
            <!-- Do not remove comments below. It's a trick to remove the spaces. -->
            <span class="method-name">
                <a href="#method-details-setMethod">setMethod</a><!--
            --></span><!--
            -->(<span class="param-data-type">string</span> <span class="variable param-name">$method</span>)<!--
            --><span class="method-return">
                <strong>:</strong>
                                    void
                            </span>
        </div>
                    <div class="method-doc">
                <div class="summary-text">
                    Set the HTTP method of the request.                </div>
            </div>
            </div>
</li>
            
<li class="class-method clearfix">
    <div class="method-summary">
        <div class="method-signature">
            <!-- method-summary -->
            <!-- Do not remove comments below. It's a trick to remove the spaces. -->
            <span class="method-name">
                <a href="#method-details-getMethod">getMethod</a><!--
            --></span><!--
            -->()<!--
            --><span class="method-return">
                <strong>:</strong>
                                    void
                            </span>
        </div>
                    <div class="method-doc">
                <div class="summary-text">
                    Get the HTTP method of the request.                </div>
            </div>
            </div>
</li>
            
<li class="class-method clearfix">
    <div class="method-summary">
        <div class="method-signature">
            <!-- method-summary -->
            <!-- Do not remove comments below. It's a trick to remove the spaces. -->
            <span class="method-name">
                <a href="#method-details-setUrl">setUrl</a><!--
            --></span><!--
            -->(<span class="param-data-type">string</span> <span class="variable param-name">$url</span>)<!--
            --><span class="method-return">
                <strong>:</strong>
                                    void
                            </span>
        </div>
                    <div class="method-doc">
                <div class="summary-text">
                    Set the URL of the request.                </div>
            </div>
            </div>
</li>
            
<li class="class-method clearfix">
    <div class="method-summary">
        <div class="method-signature">
            <!-- method-summary -->
            <!-- Do not remove comments below. It's a trick to remove the spaces. -->
            <span class="method-name">
                <a href="#method-details-getUrl">getUrl</a><!--
            --></span><!--
            -->()<!--
            --><span class="method-return">
                <strong>:</strong>
                                    void
                            </span>
        </div>
                    <div class="method-doc">
                <div class="summary-text">
                    Get the URL of the request.                </div>
            </div>
            </div>
</li>
            
<li class="class-method clearfix">
    <div class="method-summary">
        <div class="method-signature">
            <!-- method-summary -->
            <!-- Do not remove comments below. It's a trick to remove the spaces. -->
            <span class="method-name">
                <a href="#method-details-setHeader">setHeader</a><!--
            --></span><!--
            -->(<span class="param-data-type">variable</span> <span class="variable param-name">$key</span>, <span class="param-data-type">variable</span> <span class="variable param-name">$value</span>, <span class="param-data-type">bool</span> <span class="variable param-name">$preserveCase</span>)<!--
            --><span class="method-return">
                <strong>:</strong>
                                    void
                            </span>
        </div>
                    <div class="method-doc">
                <div class="summary-text">
                    Set a specific header to be sent with the request.                </div>
            </div>
            </div>
</li>
            
<li class="class-method clearfix">
    <div class="method-summary">
        <div class="method-signature">
            <!-- method-summary -->
            <!-- Do not remove comments below. It's a trick to remove the spaces. -->
            <span class="method-name">
                <a href="#method-details-setHeaders">setHeaders</a><!--
            --></span><!--
            -->(<span class="param-data-type">array</span> <span class="variable param-name">$headers</span>)<!--
            --><span class="method-return">
                <strong>:</strong>
                                    void
                            </span>
        </div>
                    <div class="method-doc">
                <div class="summary-text">
                    Set the headers to be sent with the request.                </div>
            </div>
            </div>
</li>
            
<li class="class-method clearfix">
    <div class="method-summary">
        <div class="method-signature">
            <!-- method-summary -->
            <!-- Do not remove comments below. It's a trick to remove the spaces. -->
            <span class="method-name">
                <a href="#method-details-getHeader">getHeader</a><!--
            --></span><!--
            -->(<span class="param-data-type">string</span> <span class="variable param-name">$key</span>)<!--
            --><span class="method-return">
                <strong>:</strong>
                                    void
                            </span>
        </div>
                    <div class="method-doc">
                <div class="summary-text">
                    Get a specific header from the request.                </div>
            </div>
            </div>
</li>
            
<li class="class-method clearfix">
    <div class="method-summary">
        <div class="method-signature">
            <!-- method-summary -->
            <!-- Do not remove comments below. It's a trick to remove the spaces. -->
            <span class="method-name">
                <a href="#method-details-getHeaders">getHeaders</a><!--
            --></span><!--
            -->()<!--
            --><span class="method-return">
                <strong>:</strong>
                                    void
                            </span>
        </div>
                    <div class="method-doc">
                <div class="summary-text">
                    Get the headers to be sent with the request.                </div>
            </div>
            </div>
</li>
            
<li class="class-method clearfix">
    <div class="method-summary">
        <div class="method-signature">
            <!-- method-summary -->
            <!-- Do not remove comments below. It's a trick to remove the spaces. -->
            <span class="method-name">
                <a href="#method-details-setCookie">setCookie</a><!--
            --></span><!--
            -->(<span class="param-data-type">string</span> <span class="variable param-name">$key</span>, <span class="param-data-type">string</span> <span class="variable param-name">$value</span>)<!--
            --><span class="method-return">
                <strong>:</strong>
                                    void
                            </span>
        </div>
                    <div class="method-doc">
                <div class="summary-text">
                    Set a cookie.                </div>
            </div>
            </div>
</li>
            
<li class="class-method clearfix">
    <div class="method-summary">
        <div class="method-signature">
            <!-- method-summary -->
            <!-- Do not remove comments below. It's a trick to remove the spaces. -->
            <span class="method-name">
                <a href="#method-details-setCookies">setCookies</a><!--
            --></span><!--
            -->(<span class="param-data-type">array</span> <span class="variable param-name">$cookies</span>)<!--
            --><span class="method-return">
                <strong>:</strong>
                                    void
                            </span>
        </div>
                    <div class="method-doc">
                <div class="summary-text">
                    Replace the request's cookies.                </div>
            </div>
            </div>
</li>
            
<li class="class-method clearfix">
    <div class="method-summary">
        <div class="method-signature">
            <!-- method-summary -->
            <!-- Do not remove comments below. It's a trick to remove the spaces. -->
            <span class="method-name">
                <a href="#method-details-updateCookieHeader">updateCookieHeader</a><!--
            --></span><!--
            -->()<!--
            --><span class="method-return">
                <strong>:</strong>
                                    void
                            </span>
        </div>
                    <div class="method-doc">
                <div class="summary-text">
                    Read the request cookies and set the cookie header.                </div>
            </div>
            </div>
</li>
            
<li class="class-method clearfix">
    <div class="method-summary">
        <div class="method-signature">
            <!-- method-summary -->
            <!-- Do not remove comments below. It's a trick to remove the spaces. -->
            <span class="method-name">
                <a href="#method-details-getCookie">getCookie</a><!--
            --></span><!--
            -->(<span class="param-data-type">string</span> <span class="variable param-name">$key</span>)<!--
            --><span class="method-return">
                <strong>:</strong>
                                    void
                            </span>
        </div>
                    <div class="method-doc">
                <div class="summary-text">
                    Get a specific cookie from the request.                </div>
            </div>
            </div>
</li>
            
<li class="class-method clearfix">
    <div class="method-summary">
        <div class="method-signature">
            <!-- method-summary -->
            <!-- Do not remove comments below. It's a trick to remove the spaces. -->
            <span class="method-name">
                <a href="#method-details-getCookies">getCookies</a><!--
            --></span><!--
            -->()<!--
            --><span class="method-return">
                <strong>:</strong>
                                    void
                            </span>
        </div>
                    <div class="method-doc">
                <div class="summary-text">
                    Get all the request's cookies.                </div>
            </div>
            </div>
</li>
            
<li class="class-method clearfix">
    <div class="method-summary">
        <div class="method-signature">
            <!-- method-summary -->
            <!-- Do not remove comments below. It's a trick to remove the spaces. -->
            <span class="method-name">
                <a href="#method-details-formatHeaders">formatHeaders</a><!--
            --></span><!--
            -->()<!--
            --><span class="method-return">
                <strong>:</strong>
                                    void
                            </span>
        </div>
                    <div class="method-doc">
                <div class="summary-text">
                    Format the headers to an array of 'key: val' which can be passed to                </div>
            </div>
            </div>
</li>
            
<li class="class-method clearfix">
    <div class="method-summary">
        <div class="method-signature">
            <!-- method-summary -->
            <!-- Do not remove comments below. It's a trick to remove the spaces. -->
            <span class="method-name">
                <a href="#method-details-setData">setData</a><!--
            --></span><!--
            -->(<span class="param-data-type">variable</span> <span class="variable param-name">$data</span>)<!--
            --><span class="method-return">
                <strong>:</strong>
                                    void
                            </span>
        </div>
                    <div class="method-doc">
                <div class="summary-text">
                    Set the POST data to be sent with the request.                </div>
            </div>
            </div>
</li>
            
<li class="class-method clearfix">
    <div class="method-summary">
        <div class="method-signature">
            <!-- method-summary -->
            <!-- Do not remove comments below. It's a trick to remove the spaces. -->
            <span class="method-name">
                <a href="#method-details-hasData">hasData</a><!--
            --></span><!--
            -->()<!--
            --><span class="method-return">
                <strong>:</strong>
                                    void
                            </span>
        </div>
                    <div class="method-doc">
                <div class="summary-text">
                    Check whether the request has any data.                </div>
            </div>
            </div>
</li>
            
<li class="class-method clearfix">
    <div class="method-summary">
        <div class="method-signature">
            <!-- method-summary -->
            <!-- Do not remove comments below. It's a trick to remove the spaces. -->
            <span class="method-name">
                <a href="#method-details-getData">getData</a><!--
            --></span><!--
            -->()<!--
            --><span class="method-return">
                <strong>:</strong>
                                    void
                            </span>
        </div>
                    <div class="method-doc">
                <div class="summary-text">
                    Get the POST data to be sent with the request.                </div>
            </div>
            </div>
</li>
            
<li class="class-method clearfix">
    <div class="method-summary">
        <div class="method-signature">
            <!-- method-summary -->
            <!-- Do not remove comments below. It's a trick to remove the spaces. -->
            <span class="method-name">
                <a href="#method-details-setEncoding">setEncoding</a><!--
            --></span><!--
            -->(<span class="param-data-type">int</span> <span class="variable param-name">$encoding</span>)<!--
            --><span class="method-return">
                <strong>:</strong>
                                    void
                            </span>
        </div>
                    <div class="method-doc">
                <div class="summary-text">
                    Set the encoding to use on the POST data, and (possibly) associated Content-Type headers                </div>
            </div>
            </div>
</li>
            
<li class="class-method clearfix">
    <div class="method-summary">
        <div class="method-signature">
            <!-- method-summary -->
            <!-- Do not remove comments below. It's a trick to remove the spaces. -->
            <span class="method-name">
                <a href="#method-details-getEncoding">getEncoding</a><!--
            --></span><!--
            -->()<!--
            --><span class="method-return">
                <strong>:</strong>
                                    void
                            </span>
        </div>
                    <div class="method-doc">
                <div class="summary-text">
                    Get the current encoding which will be used on the POST data                </div>
            </div>
            </div>
</li>
            
<li class="class-method clearfix">
    <div class="method-summary">
        <div class="method-signature">
            <!-- method-summary -->
            <!-- Do not remove comments below. It's a trick to remove the spaces. -->
            <span class="method-name">
                <a href="#method-details-encodeData">encodeData</a><!--
            --></span><!--
            -->()<!--
            --><span class="method-return">
                <strong>:</strong>
                                    void
                            </span>
        </div>
                    <div class="method-doc">
                <div class="summary-text">
                    Encode the POST data as a string.                </div>
            </div>
            </div>
</li>
            
<li class="class-method clearfix">
    <div class="method-summary">
        <div class="method-signature">
            <!-- method-summary -->
            <!-- Do not remove comments below. It's a trick to remove the spaces. -->
            <span class="method-name">
                <a href="#method-details-setOption">setOption</a><!--
            --></span><!--
            -->(<span class="param-data-type">string</span> <span class="variable param-name">$key</span>, <span class="param-data-type">variable</span> <span class="variable param-name">$value</span>)<!--
            --><span class="method-return">
                <strong>:</strong>
                                    void
                            </span>
        </div>
                    <div class="method-doc">
                <div class="summary-text">
                    Set a specific curl option for the request.                </div>
            </div>
            </div>
</li>
            
<li class="class-method clearfix">
    <div class="method-summary">
        <div class="method-signature">
            <!-- method-summary -->
            <!-- Do not remove comments below. It's a trick to remove the spaces. -->
            <span class="method-name">
                <a href="#method-details-setOptions">setOptions</a><!--
            --></span><!--
            -->(<span class="param-data-type">array</span> <span class="variable param-name">$options</span>)<!--
            --><span class="method-return">
                <strong>:</strong>
                                    void
                            </span>
        </div>
                    <div class="method-doc">
                <div class="summary-text">
                    Set the cURL options for the request.                </div>
            </div>
            </div>
</li>
            
<li class="class-method clearfix">
    <div class="method-summary">
        <div class="method-signature">
            <!-- method-summary -->
            <!-- Do not remove comments below. It's a trick to remove the spaces. -->
            <span class="method-name">
                <a href="#method-details-getOption">getOption</a><!--
            --></span><!--
            -->(<span class="param-data-type">string</span> <span class="variable param-name">$key</span>)<!--
            --><span class="method-return">
                <strong>:</strong>
                                    void
                            </span>
        </div>
                    <div class="method-doc">
                <div class="summary-text">
                    Get a specific curl option from the request.                </div>
            </div>
            </div>
</li>
            
<li class="class-method clearfix">
    <div class="method-summary">
        <div class="method-signature">
            <!-- method-summary -->
            <!-- Do not remove comments below. It's a trick to remove the spaces. -->
            <span class="method-name">
                <a href="#method-details-getOptions">getOptions</a><!--
            --></span><!--
            -->()<!--
            --><span class="method-return">
                <strong>:</strong>
                                    void
                            </span>
        </div>
                    <div class="method-doc">
                <div class="summary-text">
                    Get the cURL options for the request.                </div>
            </div>
            </div>
</li>
            
<li class="class-method clearfix">
    <div class="method-summary">
        <div class="method-signature">
            <!-- method-summary -->
            <!-- Do not remove comments below. It's a trick to remove the spaces. -->
            <span class="method-name">
                <a href="#method-details-auth">auth</a><!--
            --></span><!--
            -->(<span class="param-data-type">string</span> <span class="variable param-name">$user</span>, <span class="param-data-type">string</span> <span class="variable param-name">$pass</span>)<!--
            --><span class="method-return">
                <strong>:</strong>
                                    void
                            </span>
        </div>
                    <div class="method-doc">
                <div class="summary-text">
                    Set the HTTP basic username and password.                </div>
            </div>
            </div>
</li>
            
<li class="class-method clearfix">
    <div class="method-summary">
        <div class="method-signature">
            <!-- method-summary -->
            <!-- Do not remove comments below. It's a trick to remove the spaces. -->
            <span class="method-name">
                <a href="#method-details-setUser">setUser</a><!--
            --></span><!--
            -->(<span class="param-data-type">string</span> <span class="variable param-name">$user</span>)<!--
            --><span class="method-return">
                <strong>:</strong>
                                    void
                            </span>
        </div>
                    <div class="method-doc">
                <div class="summary-text">
                    Set an username to authenticate the request of curl.                </div>
            </div>
            </div>
</li>
            
<li class="class-method clearfix">
    <div class="method-summary">
        <div class="method-signature">
            <!-- method-summary -->
            <!-- Do not remove comments below. It's a trick to remove the spaces. -->
            <span class="method-name">
                <a href="#method-details-setPass">setPass</a><!--
            --></span><!--
            -->(<span class="param-data-type">string</span> <span class="variable param-name">$pass</span>)<!--
            --><span class="method-return">
                <strong>:</strong>
                                    void
                            </span>
        </div>
                    <div class="method-doc">
                <div class="summary-text">
                    Set a password to authenticate the request of curl.                </div>
            </div>
            </div>
</li>
            
<li class="class-method clearfix">
    <div class="method-summary">
        <div class="method-signature">
            <!-- method-summary -->
            <!-- Do not remove comments below. It's a trick to remove the spaces. -->
            <span class="method-name">
                <a href="#method-details-getUserAndPass">getUserAndPass</a><!--
            --></span><!--
            -->()<!--
            --><span class="method-return">
                <strong>:</strong>
                                    void
                            </span>
        </div>
                    <div class="method-doc">
                <div class="summary-text">
                    If username and password is set, returns a string of 'username:password'.                </div>
            </div>
            </div>
</li>
            
<li class="class-method clearfix">
    <div class="method-summary">
        <div class="method-signature">
            <!-- method-summary -->
            <!-- Do not remove comments below. It's a trick to remove the spaces. -->
            <span class="method-name">
                <a href="#method-details-isJson">isJson</a><!--
            --></span><!--
            -->()<!--
            --><span class="method-return">
                <strong>:</strong>
                                    void
                            </span>
        </div>
                    <div class="method-doc">
                <div class="summary-text">
                    Whether the request is JSON or not.                </div>
            </div>
            </div>
</li>
            
<li class="class-method clearfix">
    <div class="method-summary">
        <div class="method-signature">
            <!-- method-summary -->
            <!-- Do not remove comments below. It's a trick to remove the spaces. -->
            <span class="method-name">
                <a href="#method-details-send">send</a><!--
            --></span><!--
            -->()<!--
            --><span class="method-return">
                <strong>:</strong>
                                    void
                            </span>
        </div>
                    <div class="method-doc">
                <div class="summary-text">
                    Send the request.                </div>
            </div>
            </div>
</li>
            
<li class="class-method clearfix">
    <div class="method-summary">
        <div class="method-signature">
            <!-- method-summary -->
            <!-- Do not remove comments below. It's a trick to remove the spaces. -->
            <span class="method-name">
                <a href="#method-details-zephir_init_static_properties_PhalconPlus_Curl_Request">zephir_init_static_properties_PhalconPlus_Curl_Request</a><!--
            --></span><!--
            -->()<!--
            --><span class="method-return">
                <strong>:</strong>
                                    void
                            </span>
        </div>
            </div>
</li>
            
<li class="class-method clearfix">
    <div class="method-summary">
        <div class="method-signature">
            <!-- method-summary -->
            <!-- Do not remove comments below. It's a trick to remove the spaces. -->
            <span class="method-name">
                <a href="#method-details-zephir_init_properties_PhalconPlus_Curl_Request">zephir_init_properties_PhalconPlus_Curl_Request</a><!--
            --></span><!--
            -->()<!--
            --><span class="method-return">
                <strong>:</strong>
                                    void
                            </span>
        </div>
            </div>
</li>
    </ul>

<div class="hidden-anchor" id="methods-details"></div>
<div class="methods-summary standard-bandeau">Methods Details</div>

<ul class="method-details-list">
            
<li class="class-method clearfix">
    <div class="hidden-anchor" id="method-details-__construct"></div>
    <div class="method-details">
        <div class="method-details-details">

            <p class="method-signature">
                                    <span class="visibility-public keyword">public</span>
                                <span class="keyword">function</span>
                <!-- method-details -->
                <!-- Do not remove comments below. It's a trick to remove the spaces. -->
                <span class="method-name">__construct</span><!--
                -->(<span class="param-data-type">variable</span> <span class="variable param-name">$curl</span>)
            </p>

            <div class="method-doc">
                                                    <div class="summary">
                        Constructor                    </div>
                    <div class="description">
                                            </div>
                            </div>

        </div>
    </div>
</li>
            
<li class="class-method clearfix">
    <div class="hidden-anchor" id="method-details-setMethod"></div>
    <div class="method-details">
        <div class="method-details-details">

            <p class="method-signature">
                                    <span class="visibility-public keyword">public</span>
                                <span class="keyword">function</span>
                <!-- method-details -->
                <!-- Do not remove comments below. It's a trick to remove the spaces. -->
                <span class="method-name">setMethod</span><!--
                -->(<span class="param-data-type">string</span> <span class="variable param-name">$method</span>)
            </p>

            <div class="method-doc">
                                                    <div class="summary">
                        Set the HTTP method of the request.                    </div>
                    <div class="description">
                                            </div>
                            </div>

        </div>
    </div>
</li>
            
<li class="class-method clearfix">
    <div class="hidden-anchor" id="method-details-getMethod"></div>
    <div class="method-details">
        <div class="method-details-details">

            <p class="method-signature">
                                    <span class="visibility-public keyword">public</span>
                                <span class="keyword">function</span>
                <!-- method-details -->
                <!-- Do not remove comments below. It's a trick to remove the spaces. -->
                <span class="method-name">getMethod</span><!--
                -->()
            </p>

            <div class="method-doc">
                                                    <div class="summary">
                        Get the HTTP method of the request.                    </div>
                    <div class="description">
                                            </div>
                            </div>

        </div>
    </div>
</li>
            
<li class="class-method clearfix">
    <div class="hidden-anchor" id="method-details-setUrl"></div>
    <div class="method-details">
        <div class="method-details-details">

            <p class="method-signature">
                                    <span class="visibility-public keyword">public</span>
                                <span class="keyword">function</span>
                <!-- method-details -->
                <!-- Do not remove comments below. It's a trick to remove the spaces. -->
                <span class="method-name">setUrl</span><!--
                -->(<span class="param-data-type">string</span> <span class="variable param-name">$url</span>)
            </p>

            <div class="method-doc">
                                                    <div class="summary">
                        Set the URL of the request.                    </div>
                    <div class="description">
                                            </div>
                            </div>

        </div>
    </div>
</li>
            
<li class="class-method clearfix">
    <div class="hidden-anchor" id="method-details-getUrl"></div>
    <div class="method-details">
        <div class="method-details-details">

            <p class="method-signature">
                                    <span class="visibility-public keyword">public</span>
                                <span class="keyword">function</span>
                <!-- method-details -->
                <!-- Do not remove comments below. It's a trick to remove the spaces. -->
                <span class="method-name">getUrl</span><!--
                -->()
            </p>

            <div class="method-doc">
                                                    <div class="summary">
                        Get the URL of the request.                    </div>
                    <div class="description">
                                            </div>
                            </div>

        </div>
    </div>
</li>
            
<li class="class-method clearfix">
    <div class="hidden-anchor" id="method-details-setHeader"></div>
    <div class="method-details">
        <div class="method-details-details">

            <p class="method-signature">
                                    <span class="visibility-public keyword">public</span>
                                <span class="keyword">function</span>
                <!-- method-details -->
                <!-- Do not remove comments below. It's a trick to remove the spaces. -->
                <span class="method-name">setHeader</span><!--
                -->(<span class="param-data-type">variable</span> <span class="variable param-name">$key</span>, <span class="param-data-type">variable</span> <span class="variable param-name">$value</span>, <span class="param-data-type">bool</span> <span class="variable param-name">$preserveCase</span>)
            </p>

            <div class="method-doc">
                                                    <div class="summary">
                        Set a specific header to be sent with the request.                    </div>
                    <div class="description">
                                            </div>
                            </div>

        </div>
    </div>
</li>
            
<li class="class-method clearfix">
    <div class="hidden-anchor" id="method-details-setHeaders"></div>
    <div class="method-details">
        <div class="method-details-details">

            <p class="method-signature">
                                    <span class="visibility-public keyword">public</span>
                                <span class="keyword">function</span>
                <!-- method-details -->
                <!-- Do not remove comments below. It's a trick to remove the spaces. -->
                <span class="method-name">setHeaders</span><!--
                -->(<span class="param-data-type">array</span> <span class="variable param-name">$headers</span>)
            </p>

            <div class="method-doc">
                                                    <div class="summary">
                        Set the headers to be sent with the request.                    </div>
                    <div class="description">
                        Pass an associative array - e.g. ['Content-Type' => 'application/json']
	 and the correct header formatting - e.g. 'Content-Type: application/json'
	 will be done for you when the request is sent.                    </div>
                            </div>

        </div>
    </div>
</li>
            
<li class="class-method clearfix">
    <div class="hidden-anchor" id="method-details-getHeader"></div>
    <div class="method-details">
        <div class="method-details-details">

            <p class="method-signature">
                                    <span class="visibility-public keyword">public</span>
                                <span class="keyword">function</span>
                <!-- method-details -->
                <!-- Do not remove comments below. It's a trick to remove the spaces. -->
                <span class="method-name">getHeader</span><!--
                -->(<span class="param-data-type">string</span> <span class="variable param-name">$key</span>)
            </p>

            <div class="method-doc">
                                                    <div class="summary">
                        Get a specific header from the request.                    </div>
                    <div class="description">
                                            </div>
                            </div>

        </div>
    </div>
</li>
            
<li class="class-method clearfix">
    <div class="hidden-anchor" id="method-details-getHeaders"></div>
    <div class="method-details">
        <div class="method-details-details">

            <p class="method-signature">
                                    <span class="visibility-public keyword">public</span>
                                <span class="keyword">function</span>
                <!-- method-details -->
                <!-- Do not remove comments below. It's a trick to remove the spaces. -->
                <span class="method-name">getHeaders</span><!--
                -->()
            </p>

            <div class="method-doc">
                                                    <div class="summary">
                        Get the headers to be sent with the request.                    </div>
                    <div class="description">
                                            </div>
                            </div>

        </div>
    </div>
</li>
            
<li class="class-method clearfix">
    <div class="hidden-anchor" id="method-details-setCookie"></div>
    <div class="method-details">
        <div class="method-details-details">

            <p class="method-signature">
                                    <span class="visibility-public keyword">public</span>
                                <span class="keyword">function</span>
                <!-- method-details -->
                <!-- Do not remove comments below. It's a trick to remove the spaces. -->
                <span class="method-name">setCookie</span><!--
                -->(<span class="param-data-type">string</span> <span class="variable param-name">$key</span>, <span class="param-data-type">string</span> <span class="variable param-name">$value</span>)
            </p>

            <div class="method-doc">
                                                    <div class="summary">
                        Set a cookie.                    </div>
                    <div class="description">
                                            </div>
                            </div>

        </div>
    </div>
</li>
            
<li class="class-method clearfix">
    <div class="hidden-anchor" id="method-details-setCookies"></div>
    <div class="method-details">
        <div class="method-details-details">

            <p class="method-signature">
                                    <span class="visibility-public keyword">public</span>
                                <span class="keyword">function</span>
                <!-- method-details -->
                <!-- Do not remove comments below. It's a trick to remove the spaces. -->
                <span class="method-name">setCookies</span><!--
                -->(<span class="param-data-type">array</span> <span class="variable param-name">$cookies</span>)
            </p>

            <div class="method-doc">
                                                    <div class="summary">
                        Replace the request's cookies.                    </div>
                    <div class="description">
                                            </div>
                            </div>

        </div>
    </div>
</li>
            
<li class="class-method clearfix">
    <div class="hidden-anchor" id="method-details-updateCookieHeader"></div>
    <div class="method-details">
        <div class="method-details-details">

            <p class="method-signature">
                                    <span class="visibility-private keyword">private</span>
                                <span class="keyword">function</span>
                <!-- method-details -->
                <!-- Do not remove comments below. It's a trick to remove the spaces. -->
                <span class="method-name">updateCookieHeader</span><!--
                -->()
            </p>

            <div class="method-doc">
                                                    <div class="summary">
                        Read the request cookies and set the cookie header.                    </div>
                    <div class="description">
                                            </div>
                            </div>

        </div>
    </div>
</li>
            
<li class="class-method clearfix">
    <div class="hidden-anchor" id="method-details-getCookie"></div>
    <div class="method-details">
        <div class="method-details-details">

            <p class="method-signature">
                                    <span class="visibility-public keyword">public</span>
                                <span class="keyword">function</span>
                <!-- method-details -->
                <!-- Do not remove comments below. It's a trick to remove the spaces. -->
                <span class="method-name">getCookie</span><!--
                -->(<span class="param-data-type">string</span> <span class="variable param-name">$key</span>)
            </p>

            <div class="method-doc">
                                                    <div class="summary">
                        Get a specific cookie from the request.                    </div>
                    <div class="description">
                                            </div>
                            </div>

        </div>
    </div>
</li>
            
<li class="class-method clearfix">
    <div class="hidden-anchor" id="method-details-getCookies"></div>
    <div class="method-details">
        <div class="method-details-details">

            <p class="method-signature">
                                    <span class="visibility-public keyword">public</span>
                                <span class="keyword">function</span>
                <!-- method-details -->
                <!-- Do not remove comments below. It's a trick to remove the spaces. -->
                <span class="method-name">getCookies</span><!--
                -->()
            </p>

            <div class="method-doc">
                                                    <div class="summary">
                        Get all the request's cookies.                    </div>
                    <div class="description">
                                            </div>
                            </div>

        </div>
    </div>
</li>
            
<li class="class-method clearfix">
    <div class="hidden-anchor" id="method-details-formatHeaders"></div>
    <div class="method-details">
        <div class="method-details-details">

            <p class="method-signature">
                                    <span class="visibility-public keyword">public</span>
                                <span class="keyword">function</span>
                <!-- method-details -->
                <!-- Do not remove comments below. It's a trick to remove the spaces. -->
                <span class="method-name">formatHeaders</span><!--
                -->()
            </p>

            <div class="method-doc">
                                                    <div class="summary">
                        Format the headers to an array of 'key: val' which can be passed to                    </div>
                    <div class="description">
                        curl_setopt.                    </div>
                            </div>

        </div>
    </div>
</li>
            
<li class="class-method clearfix">
    <div class="hidden-anchor" id="method-details-setData"></div>
    <div class="method-details">
        <div class="method-details-details">

            <p class="method-signature">
                                    <span class="visibility-public keyword">public</span>
                                <span class="keyword">function</span>
                <!-- method-details -->
                <!-- Do not remove comments below. It's a trick to remove the spaces. -->
                <span class="method-name">setData</span><!--
                -->(<span class="param-data-type">variable</span> <span class="variable param-name">$data</span>)
            </p>

            <div class="method-doc">
                                                    <div class="summary">
                        Set the POST data to be sent with the request.                    </div>
                    <div class="description">
                                            </div>
                            </div>

        </div>
    </div>
</li>
            
<li class="class-method clearfix">
    <div class="hidden-anchor" id="method-details-hasData"></div>
    <div class="method-details">
        <div class="method-details-details">

            <p class="method-signature">
                                    <span class="visibility-public keyword">public</span>
                                <span class="keyword">function</span>
                <!-- method-details -->
                <!-- Do not remove comments below. It's a trick to remove the spaces. -->
                <span class="method-name">hasData</span><!--
                -->()
            </p>

            <div class="method-doc">
                                                    <div class="summary">
                        Check whether the request has any data.                    </div>
                    <div class="description">
                                            </div>
                            </div>

        </div>
    </div>
</li>
            
<li class="class-method clearfix">
    <div class="hidden-anchor" id="method-details-getData"></div>
    <div class="method-details">
        <div class="method-details-details">

            <p class="method-signature">
                                    <span class="visibility-public keyword">public</span>
                                <span class="keyword">function</span>
                <!-- method-details -->
                <!-- Do not remove comments below. It's a trick to remove the spaces. -->
                <span class="method-name">getData</span><!--
                -->()
            </p>

            <div class="method-doc">
                                                    <div class="summary">
                        Get the POST data to be sent with the request.                    </div>
                    <div class="description">
                                            </div>
                            </div>

        </div>
    </div>
</li>
            
<li class="class-method clearfix">
    <div class="hidden-anchor" id="method-details-setEncoding"></div>
    <div class="method-details">
        <div class="method-details-details">

            <p class="method-signature">
                                    <span class="visibility-public keyword">public</span>
                                <span class="keyword">function</span>
                <!-- method-details -->
                <!-- Do not remove comments below. It's a trick to remove the spaces. -->
                <span class="method-name">setEncoding</span><!--
                -->(<span class="param-data-type">int</span> <span class="variable param-name">$encoding</span>)
            </p>

            <div class="method-doc">
                                                    <div class="summary">
                        Set the encoding to use on the POST data, and (possibly) associated Content-Type headers                    </div>
                    <div class="description">
                                            </div>
                            </div>

        </div>
    </div>
</li>
            
<li class="class-method clearfix">
    <div class="hidden-anchor" id="method-details-getEncoding"></div>
    <div class="method-details">
        <div class="method-details-details">

            <p class="method-signature">
                                    <span class="visibility-public keyword">public</span>
                                <span class="keyword">function</span>
                <!-- method-details -->
                <!-- Do not remove comments below. It's a trick to remove the spaces. -->
                <span class="method-name">getEncoding</span><!--
                -->()
            </p>

            <div class="method-doc">
                                                    <div class="summary">
                        Get the current encoding which will be used on the POST data                    </div>
                    <div class="description">
                                            </div>
                            </div>

        </div>
    </div>
</li>
            
<li class="class-method clearfix">
    <div class="hidden-anchor" id="method-details-encodeData"></div>
    <div class="method-details">
        <div class="method-details-details">

            <p class="method-signature">
                                    <span class="visibility-public keyword">public</span>
                                <span class="keyword">function</span>
                <!-- method-details -->
                <!-- Do not remove comments below. It's a trick to remove the spaces. -->
                <span class="method-name">encodeData</span><!--
                -->()
            </p>

            <div class="method-doc">
                                                    <div class="summary">
                        Encode the POST data as a string.                    </div>
                    <div class="description">
                                            </div>
                            </div>

        </div>
    </div>
</li>
            
<li class="class-method clearfix">
    <div class="hidden-anchor" id="method-details-setOption"></div>
    <div class="method-details">
        <div class="method-details-details">

            <p class="method-signature">
                                    <span class="visibility-public keyword">public</span>
                                <span class="keyword">function</span>
                <!-- method-details -->
                <!-- Do not remove comments below. It's a trick to remove the spaces. -->
                <span class="method-name">setOption</span><!--
                -->(<span class="param-data-type">string</span> <span class="variable param-name">$key</span>, <span class="param-data-type">variable</span> <span class="variable param-name">$value</span>)
            </p>

            <div class="method-doc">
                                                    <div class="summary">
                        Set a specific curl option for the request.                    </div>
                    <div class="description">
                                            </div>
                            </div>

        </div>
    </div>
</li>
            
<li class="class-method clearfix">
    <div class="hidden-anchor" id="method-details-setOptions"></div>
    <div class="method-details">
        <div class="method-details-details">

            <p class="method-signature">
                                    <span class="visibility-public keyword">public</span>
                                <span class="keyword">function</span>
                <!-- method-details -->
                <!-- Do not remove comments below. It's a trick to remove the spaces. -->
                <span class="method-name">setOptions</span><!--
                -->(<span class="param-data-type">array</span> <span class="variable param-name">$options</span>)
            </p>

            <div class="method-doc">
                                                    <div class="summary">
                        Set the cURL options for the request.                    </div>
                    <div class="description">
                                            </div>
                            </div>

        </div>
    </div>
</li>
            
<li class="class-method clearfix">
    <div class="hidden-anchor" id="method-details-getOption"></div>
    <div class="method-details">
        <div class="method-details-details">

            <p class="method-signature">
                                    <span class="visibility-public keyword">public</span>
                                <span class="keyword">function</span>
                <!-- method-details -->
                <!-- Do not remove comments below. It's a trick to remove the spaces. -->
                <span class="method-name">getOption</span><!--
                -->(<span class="param-data-type">string</span> <span class="variable param-name">$key</span>)
            </p>

            <div class="method-doc">
                                                    <div class="summary">
                        Get a specific curl option from the request.                    </div>
                    <div class="description">
                                            </div>
                            </div>

        </div>
    </div>
</li>
            
<li class="class-method clearfix">
    <div class="hidden-anchor" id="method-details-getOptions"></div>
    <div class="method-details">
        <div class="method-details-details">

            <p class="method-signature">
                                    <span class="visibility-public keyword">public</span>
                                <span class="keyword">function</span>
                <!-- method-details -->
                <!-- Do not remove comments below. It's a trick to remove the spaces. -->
                <span class="method-name">getOptions</span><!--
                -->()
            </p>

            <div class="method-doc">
                                                    <div class="summary">
                        Get the cURL options for the request.                    </div>
                    <div class="description">
                                            </div>
                            </div>

        </div>
    </div>
</li>
            
<li class="class-method clearfix">
    <div class="hidden-anchor" id="method-details-auth"></div>
    <div class="method-details">
        <div class="method-details-details">

            <p class="method-signature">
                                    <span class="visibility-public keyword">public</span>
                                <span class="keyword">function</span>
                <!-- method-details -->
                <!-- Do not remove comments below. It's a trick to remove the spaces. -->
                <span class="method-name">auth</span><!--
                -->(<span class="param-data-type">string</span> <span class="variable param-name">$user</span>, <span class="param-data-type">string</span> <span class="variable param-name">$pass</span>)
            </p>

            <div class="method-doc">
                                                    <div class="summary">
                        Set the HTTP basic username and password.                    </div>
                    <div class="description">
                                            </div>
                            </div>

        </div>
    </div>
</li>
            
<li class="class-method clearfix">
    <div class="hidden-anchor" id="method-details-setUser"></div>
    <div class="method-details">
        <div class="method-details-details">

            <p class="method-signature">
                                    <span class="visibility-public keyword">public</span>
                                <span class="keyword">function</span>
                <!-- method-details -->
                <!-- Do not remove comments below. It's a trick to remove the spaces. -->
                <span class="method-name">setUser</span><!--
                -->(<span class="param-data-type">string</span> <span class="variable param-name">$user</span>)
            </p>

            <div class="method-doc">
                                                    <div class="summary">
                        Set an username to authenticate the request of curl.                    </div>
                    <div class="description">
                                            </div>
                            </div>

        </div>
    </div>
</li>
            
<li class="class-method clearfix">
    <div class="hidden-anchor" id="method-details-setPass"></div>
    <div class="method-details">
        <div class="method-details-details">

            <p class="method-signature">
                                    <span class="visibility-public keyword">public</span>
                                <span class="keyword">function</span>
                <!-- method-details -->
                <!-- Do not remove comments below. It's a trick to remove the spaces. -->
                <span class="method-name">setPass</span><!--
                -->(<span class="param-data-type">string</span> <span class="variable param-name">$pass</span>)
            </p>

            <div class="method-doc">
                                                    <div class="summary">
                        Set a password to authenticate the request of curl.                    </div>
                    <div class="description">
                                            </div>
                            </div>

        </div>
    </div>
</li>
            
<li class="class-method clearfix">
    <div class="hidden-anchor" id="method-details-getUserAndPass"></div>
    <div class="method-details">
        <div class="method-details-details">

            <p class="method-signature">
                                    <span class="visibility-public keyword">public</span>
                                <span class="keyword">function</span>
                <!-- method-details -->
                <!-- Do not remove comments below. It's a trick to remove the spaces. -->
                <span class="method-name">getUserAndPass</span><!--
                -->()
            </p>

            <div class="method-doc">
                                                    <div class="summary">
                        If username and password is set, returns a string of 'username:password'.                    </div>
                    <div class="description">
                        If not, returns null.                    </div>
                            </div>

        </div>
    </div>
</li>
            
<li class="class-method clearfix">
    <div class="hidden-anchor" id="method-details-isJson"></div>
    <div class="method-details">
        <div class="method-details-details">

            <p class="method-signature">
                                    <span class="visibility-public keyword">public</span>
                                <span class="keyword">function</span>
                <!-- method-details -->
                <!-- Do not remove comments below. It's a trick to remove the spaces. -->
                <span class="method-name">isJson</span><!--
                -->()
            </p>

            <div class="method-doc">
                                                    <div class="summary">
                        Whether the request is JSON or not.                    </div>
                    <div class="description">
                                            </div>
                            </div>

        </div>
    </div>
</li>
            
<li class="class-method clearfix">
    <div class="hidden-anchor" id="method-details-send"></div>
    <div class="method-details">
        <div class="method-details-details">

            <p class="method-signature">
                                    <span class="visibility-public keyword">public</span>
                                <span class="keyword">function</span>
                <!-- method-details -->
                <!-- Do not remove comments below. It's a trick to remove the spaces. -->
                <span class="method-name">send</span><!--
                -->()
            </p>

            <div class="method-doc">
                                                    <div class="summary">
                        Send the request.                    </div>
                    <div class="description">
                                            </div>
                            </div>

        </div>
    </div>
</li>
            
<li class="class-method clearfix">
    <div class="hidden-anchor" id="method-details-zephir_init_static_properties_PhalconPlus_Curl_Request"></div>
    <div class="method-details">
        <div class="method-details-details">

            <p class="method-signature">
                                    <span class="visibility-internal keyword">internal</span>
                                <span class="keyword">function</span>
                <!-- method-details -->
                <!-- Do not remove comments below. It's a trick to remove the spaces. -->
                <span class="method-name">zephir_init_static_properties_PhalconPlus_Curl_Request</span><!--
                -->()
            </p>

            <div class="method-doc">
                                            </div>

        </div>
    </div>
</li>
            
<li class="class-method clearfix">
    <div class="hidden-anchor" id="method-details-zephir_init_properties_PhalconPlus_Curl_Request"></div>
    <div class="method-details">
        <div class="method-details-details">

            <p class="method-signature">
                                    <span class="visibility-internal keyword">internal</span>
                                <span class="keyword">function</span>
                <!-- method-details -->
                <!-- Do not remove comments below. It's a trick to remove the spaces. -->
                <span class="method-name">zephir_init_properties_PhalconPlus_Curl_Request</span><!--
                -->()
            </p>

            <div class="method-doc">
                                            </div>

        </div>
    </div>
</li>
    </ul>
                </div>
            </div>
        </div>
    </body>
</html>
